﻿//
//  Windows_libc
//
//  Created by  cc_team(陈旭，陈曦) qq:511272827.
//  Copyright 2011 cc_team. All rights reserved.
//
#ifndef CC_ENCODE_H
#define CC_ENCODE_H

#include "cc_common.h"
#include "cc_wchar.h"
#include "cc_bool.h"

__BEGIN_DECLS

void __cdecl cc_ANSI2Unicode(char *ansi, wchar_t *unicode);
void __cdecl cc_Unicode2ANSI(wchar_t *unicode, char *ansi);
void __cdecl cc_UTF82Unicode(char *utf8, wchar_t *unicode);
void __cdecl cc_Unicode2UTF8(wchar_t *unicode, char *utf8);

// I am sorry, has some bugs
int	__cdecl		cc_ucs2char_to_utf8(
	IN		wchar_t		wch,
	OUT		char		*utf8Str
);

__END_DECLS
#endif
